package com.tbit.manager.api;

import com.tbit.manager.api.dto.ItemsDTO;
import com.tbit.manager.enums.ApiConstants;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

/**
 * 工作台
 * @author <a href="mailto:liu.haoxiang@tbit.com.cn">BUGXiang</a>
 * @version 1.0
 * @since 2024-11-14
 */
@FeignClient(name = ApiConstants.NAME)
public interface WorkbenchApi {

    String PREFIX = ApiConstants.PREFIX + "/workbench";


    /**
     * 待办事项
     * @param dto dto
     * @return Map<String, Object>
     */
    @PostMapping(value = PREFIX + "/todoItems", produces = "application/json", consumes = "application/json")
    Map<String, Object> todoItems(@RequestBody ItemsDTO dto);

    /**
     * 获取车辆数据
     * @param dto dto
     * @return Map<String, Object>
     */
    @PostMapping(value = PREFIX + "/machineData", produces = "application/json", consumes = "application/json")
    Map<String, Object> machineData(@RequestBody ItemsDTO dto);


}
